require 'rubygems'
require 'pp'
require 'date'
require 'FileUtils'

include ParseDate

source_directory=%q(E:\t)
file_type='session'
start_date=Date.new(2007,10,1)
end_date=Date.new(2007,10,15)

(start_date..end_date).each do |x|
    file_path="#{source_directory}\\server.#{file_type}.log.#{x}"

    if File.exist? file_path
        p %Q(|#{file_type}|#{File.basename(file_path)}|)
    else
        p %Q(|#{file_type}|Missing|)
    end
end




